package com.guigu.youxuan.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.guigu.youxuan.pojo.Warehouse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
public interface WarehouseMapper extends BaseMapper<Warehouse> {
    /**
     * 查询未复核的仓库信息
     * @return
     */
    List<Warehouse> list(QueryWrapper<Warehouse> queryWrapper);
    /**
     * 根据仓库表id查询对应的仓库信息
     * @param id
     * @return
     */
    Warehouse getByIdPage(int id);
    /**
     * 分页查询所有仓库信息
     * @return
     */
    List<Warehouse> Page(QueryWrapper<Warehouse> wrapper);
}
